package com.yonyou.cyxdms.sysAuth.service.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yonyou.cyxdms.framework.bean.entity.base.DMSBasePO;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author adu
 * @since 2019-03-21
 */
@TableName("tm_user")
public class TcUserPO extends DMSBasePO<TcUserPO> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "USER_ID", type = IdType.AUTO)
    private Integer userId;

    @TableField("APP_ID")
    private String appId;

    @TableId("EMP_ID")
    private Integer empId;

    @TableField("COMPANY_CODE")
    private String companyCode;

    @TableField("OWNER_CODE")
    private String ownerCode;

    @TableField("OWNER_PAR_CODE")
    private String ownerParCode;

    @TableField("USER_CODE")
    private String userCode;

    @TableField("PASSWORD")
    private String password;

    @TableField("FAILURE_NUM")
    private Integer failureNum;


    /**
     * 集团编码
     */
    @TableField(value = "group_code", exist = false)
    private String groupCode;

    @TableField(value = "user_type", exist = false)
    private Integer userType;

    @TableField(value = "REG_ID", exist = false)
    private String regId;


    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public TcUserPO() {
        super();
    }


    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public String toString() {
        return "TcUserPO{" +
                "userId=" + userId +
                ", ownerCode='" + ownerCode + '\'' +
                ", companyCode='" + companyCode + '\'' +
                ", ownerParCode='" + ownerParCode + '\'' +
                ", userCode='" + userCode + '\'' +
                ", password='" + password + '\'' +
                ", failureNum=" + failureNum +
                ", empId=" + empId +
                ", groupCode='" + groupCode + '\'' +
                ", userType=" + userType +
                ", regId='" + regId + '\'' +
                ", appId='" + appId + '\'' +
                '}';
    }

    public String getCompanyCode() {
        return companyCode;
    }

    public void setCompanyCode(String companyCode) {
        this.companyCode = companyCode;
    }

    public String getOwnerParCode() {
        return ownerParCode;
    }

    public void setOwnerParCode(String ownerParCode) {
        this.ownerParCode = ownerParCode;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getFailureNum() {
        return failureNum;
    }

    public void setFailureNum(Integer failureNum) {
        this.failureNum = failureNum;
    }

    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public String getOwnerCode() {
        return ownerCode;
    }

    public void setOwnerCode(String ownerCode) {
        this.ownerCode = ownerCode;
    }

    public String getGroupCode() {
        return groupCode;
    }

    public void setGroupCode(String groupCode) {
        this.groupCode = groupCode;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getRegId() {
        return regId;
    }

    public void setRegId(String regId) {
        this.regId = regId;
    }

    @Override
    protected Serializable pkVal() {
        return this.userId;
    }


}
